﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UpLoadDataOnTime.DataBaseUtil
{
    public class DbFactory
    {
        public static IDatabase CreateDb()
        {
            SqlHelper sqlHelper = SqlHelper.open();
            return new IDatabase(sqlHelper);
        }
    }

    public struct IDatabase
    {
        public SqlHelper Context { get; set; }

        public IDatabase(SqlHelper context)
        {
            this.Context = context;
        }
    }
}
